package jdk.io;

import java.io.*;

/**
 * 缓冲流
 * 以为字节数据的形式读写流
 */
public class BufferStream {
    public static void main(String[] args) throws IOException {
        File file = new File("d://BufferStreamTest");
        BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(new FileOutputStream(file));
        bufferedOutputStream.write(1);
        BufferedInputStream bufferedInputStream = new BufferedInputStream(new FileInputStream(file));
        bufferedInputStream.read();
    }
}
